package com.example.tse.rbhttpservice.service.goods.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.goods.model.GoodsGetPriceSpecs;
/**
* 获取商品价格等信息（含价格、库存、限购数量、货品ID），商品信息对应的商品编号每个货品都需要改变的
* @author wliu
* edit tse
*/
public class GoodsGetPriceResponse extends RudderResponse{

private String price = "";


private String mktprice = "";


private String productId = "";


private String limit = "";


private String store = "";


private String discount = "";


private List<GoodsGetPriceSpecs> specs = new ArrayList<GoodsGetPriceSpecs>();


private String bn = "";


private String isTax = "";


/**
* @return price
*/
public String getPrice() {
return this.price;
}

/**
* @return price
*/
public void setPrice(String price) {
this.price = price;
}
/**
methodName    Price
type          String
name          price
defaultType   ""
*/

/**
* @return mktprice
*/
public String getMktprice() {
return this.mktprice;
}

/**
* @return mktprice
*/
public void setMktprice(String mktprice) {
this.mktprice = mktprice;
}
/**
methodName    Mktprice
type          String
name          mktprice
defaultType   ""
*/

/**
* @return productId
*/
public String getProductId() {
return this.productId;
}

/**
* @return productId
*/
public void setProductId(String productId) {
this.productId = productId;
}
/**
methodName    ProductId
type          String
name          productId
defaultType   ""
*/

/**
* @return limit
*/
public String getLimit() {
return this.limit;
}

/**
* @return limit
*/
public void setLimit(String limit) {
this.limit = limit;
}
/**
methodName    Limit
type          String
name          limit
defaultType   ""
*/

/**
* @return store
*/
public String getStore() {
return this.store;
}

/**
* @return store
*/
public void setStore(String store) {
this.store = store;
}
/**
methodName    Store
type          String
name          store
defaultType   ""
*/

/**
* @return discount
*/
public String getDiscount() {
return this.discount;
}

/**
* @return discount
*/
public void setDiscount(String discount) {
this.discount = discount;
}
/**
methodName    Discount
type          String
name          discount
defaultType   ""
*/

/**
* @return specs
*/
public List<GoodsGetPriceSpecs> getSpecs() {
return this.specs;
}

/**
* @return specs
*/
public void setSpecs(List<GoodsGetPriceSpecs> specs) {
this.specs = specs;
}
/**
methodName    Specs
type          List<GoodsGetPriceSpecs>
name          specs
defaultType   new ArrayList<GoodsGetPriceSpecs>()
*/

/**
* @return bn
*/
public String getBn() {
return this.bn;
}

/**
* @return bn
*/
public void setBn(String bn) {
this.bn = bn;
}
/**
methodName    Bn
type          String
name          bn
defaultType   ""
*/

/**
* @return isTax
*/
public String getIsTax() {
return this.isTax;
}

/**
* @return isTax
*/
public void setIsTax(String isTax) {
this.isTax = isTax;
}
/**
methodName    IsTax
type          String
name          isTax
defaultType   ""
*/

/**


    private static void filterFor(GoodsGetPriceSpecsSpecValues goods) {
        if (goods.getProductId() == null) {
            goods.setProductId("");
        }
        if (goods.getSpecValue() == null) {
            goods.setSpecValue("");
        }
    }

    private static void filterFor(GoodsGetPriceSpecs goods) {
        if (goods.getSpecId() == null) {
            goods.setSpecId("");
        }
        if (goods.getSpecName() == null) {
            goods.setSpecName("");
        }
        if (goods.getSpecValues() == null) {
            goods.setSpecValues(new ArrayList<GoodsGetPriceSpecsSpecValues>());
        } else {
            for (GoodsGetPriceSpecsSpecValues item : goods.getSpecValues()) {
                filterFor(item);
            }
        }
    }

    public static void filter(GoodsGetPriceResponse goods) {
        if (goods.getPrice() == null) {
            goods.setPrice("");
        }
        if (goods.getMktprice() == null) {
            goods.setMktprice("");
        }
        if (goods.getProductId() == null) {
            goods.setProductId("");
        }
        if (goods.getLimit() == null) {
            goods.setLimit("");
        }
        if (goods.getStore() == null) {
            goods.setStore("");
        }
        if (goods.getDiscount() == null) {
            goods.setDiscount("");
        }
        if (goods.getSpecs() == null) {
            goods.setSpecs(new ArrayList<GoodsGetPriceSpecs>());
        } else {
            for (GoodsGetPriceSpecs item : goods.getSpecs()) {
                filterFor(item);
            }
        }
        if (goods.getBn() == null) {
            goods.setBn("");
        }
        if (goods.getIsTax() == null) {
            goods.setIsTax("");
        }
    }

*/

}
